
<?php


require_once("./connect.php");

$ini=parse_ini_file('config.ini',false);

mysql_select_db($ini['dbName']);
if(mysql_select_db($ini['dbName']))
{


  $q ="Select * From shapes";    

        $r = mysql_query($q);


while($row = mysql_fetch_array($r)){

    $formatName=$row['path'];
	$id=$row['id'];
//echo '<img src="' . $img . '" style="cursor:pointer;" width="220" height="200" alt="' . $img . '"/>' . "\n";
   
  // echo($r);
   // echo $img;
   // echo "<input class='radioFilling' type='radio' name='fillingType' value='". $fillingName ."' /><b> ". $fillingName ."</b>";
  echo "<div style='float:left; padding:5px;'><div style='text-align:center'><img class='cuttings' src='".$formatName."' width='60' height='60' /></div><div style='text-align:center'><input class='radioFormat' type='radio' name='square' value='".$id."'/></div></div>";
  
  }
	
}

?>